<div class="form-group js-qrcode-show" {guanlians}>
	<label class="col-xs-12 col-sm-3 col-md-2 right-label">{{check_show_lang('{title}')}}</label>
	<div class="col-sm-9 col-xs-12 ">
		<div class="l" style="margin-top:6px;margin-right:6px;">
			<img  id="barcode-{name}" style="height:80px;width:180px"/>
		</div>
		<div class="l help-block" style="width:100%">{{pagedata.help{name}}}</div>
	</div>
</div>
<script>
require(['JsBarcode'],function(JsBarcode){
	//console.log('准备调用');
	var codenum1=scope.pagedata.item.{codenum1}?scope.pagedata.item.{codenum1}:5
	var code1=''
	for(i1=0;i1<codenum1;i1++){
		code1 +='6'
	}
	var codenum2=scope.pagedata.item.{codenum2}?scope.pagedata.item.{codenum2}:5
	var code2='1'
	for(i2=0;i2<codenum2-1;i2++){
		code2 +='0'
	}
	var codedemo='10'+code1+code2+'1';
	scope.pagedata.help{name}='秤码=10，'+'商品编码='+code1+'，金额='+code2+'，效验码=1；（上面参数：商品码长度，金额长度，需保存后，示例码才会刷新）'
	JsBarcode('#barcode-{name}',codedemo,{fontSize:36});
});
</script>